package com.example.xiaoshuo_yudu.service;

import com.example.xiaoshuo_yudu.entity.dto.LoginDTO;
import com.example.xiaoshuo_yudu.entity.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.xiaoshuo_yudu.entity.vo.EmailRegisterVo;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户基本信息表 服务类
 * </p>
 *
 * @author xusen
 * @since 2025-07-25
 */
@Service
public interface UsersService extends IService<Users> {
    /**
     * 发送验证码
     * @param type
     * @param email
     * @param ip
     * @return
     */
    String registerEmailVerifyCode(String type, String email, String ip);

    /**
     * 注册
     * @param registerVo
     * @return
     */
    String registerEmailAccount(EmailRegisterVo registerVo);

    /**
     * 登录
     * @param loginDTO
     * @return
     */
    Users login(LoginDTO loginDTO);
}
